package cn.stylefeng.guns.modular.yingbao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 合约设置表
 * </p>
 *
 * @author jj
 * @since 2019-12-10
 */
@TableName("yingbao_contract_setting")
public class ContractSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 开始价格
     */
    @TableField("price")
    private Long price;

    /**
     * 结束价格
     */
    @TableField("price1")
    private Long price1;

    /**
     * 合约名称
     */
    @TableField("contract_name")
    private String contractName;

    /**
     * 0 新手合约  1初级 2中级 3高级
     */
    @TableField("contract_type")
    private Integer contractType;

    /**
     * 收益
     */
    @TableField("earnings")
    private Integer earnings;

    /**
     * 建仓时间
     */
    @TableField("buying_time")
    private Long buyingTime;

    /**
     * VIP建仓时间
     */
    @TableField("buying_vip_time")
    private Long buyingVipTime;

    /**
     * 合约交割日时间
     */
    @TableField("delivery_time")
    private Long deliveryTime;

    /**
     * vip合约交割日时间
     */
    @TableField("delivery_vip_time")
    private Long deliveryVipTime;

    /**
     * 仓库
     */
    @TableField("repertory")
    private Integer repertory;

    /**
     * 序号
     */
    @TableField("ordinal")
    private String ordinal;

    /**
     * 备用1
     */
    @TableField("standby1")
    private String standby1;

    /**
     * 备用2
     */
    @TableField("standby2")
    private String standby2;

    /**
     * 备用3
     */
    @TableField("standby3")
    private String standby3;

    /**
     * 备用4
     */
    @TableField("standby4")
    private String standby4;

    /**
     * 备用5
     */
    @TableField("standby5")
    private String standby5;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPrice1() {
        return price1;
    }

    public void setPrice1(Long price1) {
        this.price1 = price1;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public Integer getContractType() {
        return contractType;
    }

    public void setContractType(Integer contractType) {
        this.contractType = contractType;
    }

    public Long getBuyingTime() {
        return buyingTime;
    }

    public void setBuyingTime(Long buyingTime) {
        this.buyingTime = buyingTime;
    }

    public Long getBuyingVipTime() {
        return buyingVipTime;
    }

    public void setBuyingVipTime(Long buyingVipTime) {
        this.buyingVipTime = buyingVipTime;
    }

    public Long getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Long deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Long getDeliveryVipTime() {
        return deliveryVipTime;
    }

    public void setDeliveryVipTime(Long deliveryVipTime) {
        this.deliveryVipTime = deliveryVipTime;
    }

    public Integer getRepertory() {
        return repertory;
    }

    public void setRepertory(Integer repertory) {
        this.repertory = repertory;
    }

    public String getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(String ordinal) {
        this.ordinal = ordinal;
    }

    public String getStandby1() {
        return standby1;
    }

    public void setStandby1(String standby1) {
        this.standby1 = standby1;
    }

    public String getStandby2() {
        return standby2;
    }

    public void setStandby2(String standby2) {
        this.standby2 = standby2;
    }

    public String getStandby3() {
        return standby3;
    }

    public void setStandby3(String standby3) {
        this.standby3 = standby3;
    }

    public String getStandby4() {
        return standby4;
    }

    public void setStandby4(String standby4) {
        this.standby4 = standby4;
    }

    public String getStandby5() {
        return standby5;
    }

    public void setStandby5(String standby5) {
        this.standby5 = standby5;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getEarnings() {
        return earnings;
    }

    public void setEarnings(Integer earnings) {
        this.earnings = earnings;
    }

    @Override
    public String toString() {
        return "ContractSetting{" +
        "id=" + id +
        ", price=" + price +
        ", contractName=" + contractName +
        ", contractType=" + contractType +
        ", buyingTime=" + buyingTime +
        ", buyingVipTime=" + buyingVipTime +
        ", deliveryTime=" + deliveryTime +
        ", deliveryVipTime=" + deliveryVipTime +
        ", repertory=" + repertory +
        ", ordinal=" + ordinal +
        ", standby1=" + standby1 +
        ", standby2=" + standby2 +
        ", standby3=" + standby3 +
        ", standby4=" + standby4 +
        ", standby5=" + standby5 +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +

        ", version=" + version +
        "}";
    }
}
